package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcDrugHistoryMapper;
import com.csun.cmny.provider.model.domain.OmcDrugHistory;
import com.csun.cmny.provider.model.vo.customerArchives.DrugHistoryVo;
import com.csun.cmny.provider.service.OmcDrugHistoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class OmcDrugHistoryServiceImpl extends BaseService<OmcDrugHistory> implements OmcDrugHistoryService {
    @Resource
    private OmcDrugHistoryMapper drugHistoryMapper;

    @Override
    public List<DrugHistoryVo> selectDrugHistory(Long oldmanId) {
        return drugHistoryMapper.selectDrugHistory(oldmanId);
    }
}
